<?php
require_once("tools.php");

$con = new con_db();
$content=htmlspecialchars($_POST['reply']);
$sql = "INSERT INTO reply (id, time, timematch, reply )
        VALUES ('$_COOKIE[user]', now(),'$_POST[time]','$content')";
$con->query($sql);

$url = "homepage.php";
header('location:' . $url);
?>